class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}
		
		"/nextgen"(controller:"rest", parseRequest:true){
			action = [GET:"showRdf", POST:"insert", DELETE:"deleteAll"]
		} 
		"/nextgen/$id"(controller:"rest", parseRequest:true) {
			action= [GET:"show", DELETE:"delete"]
		}
		"/nextgen/rdf/nt"(controller:"rest", parseRequest:true){
			action = [GET:"showRdfNt"]
		}
		"/nextgen/rdf/json"(controller:"rest", parseRequest:true){
			action = [GET:"showRdfJson"]
		}
		"/"(view:"/index")
		"500"(view:'/error')
	}
}
